<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/styles/general.css"/>
<link rel="stylesheet" type="text/css" href="/styles/main.css" />
<link rel="stylesheet" type="text/css" href="/styles/validator.css"></link>
<script src="/js/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/js/formValidator.js" type="text/javascript"></script>
<script src="/js/formValidatorRegex.js" type="text/javascript"></script>
<script type="text/javascript"> 
$(document).ready(function(){
	$.formValidator.initConfig({formid:"myform",onerror:function(msg){alert(msg)}});
	$("#username").formValidator({onshow:"请输入用户名",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
	$("#email").formValidator({onshow:"请输入邮件地址",onfocus:"请至少要输入1个字符",oncorrect:"OK",defaultvalue:""}).inputValidator({min:1,onerror:"长度不正确,请确认"});
});
</script>
<title></title>
</head>
<body>
<h1>
<span class="action-span"><a href="/admin">管理管理员</a></span>
<span class="action-span1">修改管理员 </span>
<div style="clear:both"></div>
</h1>
<div class="main-div">
  <form action="/admin/modify/" method="post" name="myform" id="myform" enctype="multipart/form-data">
  <input name='userid' id='userid' type="hidden" value="$userid" /> 
  <table width="100%" id="general-table">
      <tr>
        <td class="label">用户名：</td>
        <td>
        	 $info['username']
        </td>
        <td><div id='usernameTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">密码：</td>
        <td>
       		{form password * password password}
        </td>
        <td><div id='passwordTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">邮件地址：</td>
        <td>
       		{form text * email email $info['email']}
        </td>
        <td><div id='emailTip' style="width:250px"></div></td>
      </tr>
	  <tr>
        <td class="label">是否禁用：</td>
        <td>
        	{form radio * disabled disabled $info['disabled'] * 10} 
        </td>
        <td><div id='disabledTip' style="width:250px"></div></td>
      </tr>
       <tr>
        <td class="label">是否SP：</td>
        <td>
        	{form radio * issp issp $info['issp'] * 10}      		
        </td>
        <td><div id='disabledTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">SP：</td>
        <td>
        	{form select * spid spid $info['spid'] * * $splist}      		
        </td>
        <td><div id='disabledTip' style="width:250px"></div></td>
      </tr>
      <tr>
        <td class="label">所属角色：</td>
        <td>
       		<!--{form checkbox * roles roles $valueadminrole * 1 $roles}-->
        </td>
        <td></td>
      </tr>
      </table>
  
   <div class="button-div">
        <input type="submit" value="&nbsp;确&nbsp;定&nbsp;" />
        &nbsp;&nbsp;&nbsp;&nbsp;
        <input type="reset" value="&nbsp;重&nbsp;置&nbsp;" />
   </div>
      
  </form>
</div>
{template 'footer.html'}
</body>
</html>
